# $Id: PKGBUILD 178314 2013-02-20 01:15:54Z eric $
# Maintainer: Eric Bélanger <eric@archlinux.org>

pkgname=freeciv
pkgver=2.3.4
pkgrel=1
pkgdesc="A multiuser clone of the famous Microprose game of Civilization"
arch=('i686' 'x86_64')
url="http://www.freeciv.org/"
license=('GPL')
depends=('gtk2' 'sdl_mixer' 'hicolor-icon-theme')
options=('!libtool')
install=freeciv.install
source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.bz2)
sha1sums=('974bbadf86c697bd2d4de7abf12d992fb50f1724')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  ./configure --prefix=/usr --enable-client=gtk2 --enable-shared --without-ggz-client
  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make DESTDIR="${pkgdir}" install
}
